//  合并标题
export function meageTitle(value) {

    let temporary = null;
    if (value !== undefined) {
        value.forEach((element, index) => {
            if (index >= 1) {
                temporary = `${temporary} / ${element.name}`;
            } else {
                temporary = element.name;
            }
        });

        return temporary;
    }

}
// 合并元素
export function meageElement(value, style = "s-fc3") {

    let temporary = null;
    if (value !== undefined) {
        value.forEach((element, index) => {
            if (index >= 1) {
                temporary = `${temporary}&nbsp;/&nbsp<a href="javascript:;" class="${style} unline">${element.name}</a>`;
            } else {
                temporary = `<a href="javascript:;" class="${style} unline">${element.name}</a>`;
            }
        });
        return temporary;
    }

}